package com.qs.order.message;

import org.springframework.cloud.stream.annotation.Input;
import org.springframework.cloud.stream.annotation.Output;
import org.springframework.messaging.MessageChannel;
import org.springframework.messaging.SubscribableChannel;

/**
 * @Desc:
 * @author: jianfeng
 * @Time: 2019/9/24 9:11
 */
public interface StreamClient {

    String INPUT="myMessage";

    String INPUT2="myMessage2";

    @Input(StreamClient.INPUT)
    SubscribableChannel input();

    @Output(StreamClient.INPUT)
    MessageChannel output();

    @Input(StreamClient.INPUT2)
    SubscribableChannel inpu2();

    @Output(StreamClient.INPUT2)
    MessageChannel output2();

}
